;
(function (root) {
    function AudioManage() {
        this.audio = new Audio();
        this.audio.muted=true;  
        this.status = 'pause';
    }
    AudioManage.prototype = {
        load(src) {
            this.audio.src = src;      
            
            this.audio.load();
            
            
        },
        play() {     
            this.audio.play();
            this.audio.muted=false;
            this.status = 'play';

        },
        pause() {
            this.audio.pause();
            this.status = 'pause';

        },
        end(cb) {
            this.audio.onended = cb;

        },
        playTo(time) {
            this.audio.currentTime = time;
        }
    }
    root.music = AudioManage;

})(window.player)